package com.hitqz.robot.api.dispatch.protocol.dto;

import lombok.Data;

/**
 * 机器人地图坐标管理表
 *
 * @author robot
 * @date 2024-06-06 15:19:24
 */
@Data
public class RobotMapPosDto {

	private String clientId;

	//地图点位机器人坐标x
    private Double posX;
	//地图点位机器人坐标y
    private Double posY;
	//地图点位机器人坐标z
    private Double posZ;
	//地图点位机器人坐标yaw
    private Double yaw;
	//点位编码
    private String code;
	//点位名称
    private String name;
	//分段标志
    private Integer splitFlag;

	private String mapCode;

	private String mapName;


	@Override
	public int hashCode() {
		return code.hashCode();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (!(obj instanceof RobotMapPosDto u)) {
			return false;
		}
        return this.getCode().equalsIgnoreCase(u.getCode());
	}


	private String preCode;
}